<style>
.search_form .layui-inline{padding-left:0px;}
.layui-form-label{line-height:25px;}
.search_form .layui-form-label{padding:5px 5px 0 5px;}
.shouhou {position: absolute;float:left; margin:10px 0px 0px -11px !important; width:7px !important;height:7px !important; z-index:20;}
.shouhou_no {position: absolute;float:left; z-index:10;}
</style>
<div class="search-box">
	<form class="search_form layui-form" lay-filter="order_search_form">
		{if condition="$get_site['site_name'] EQ '主站'"}
		<div class="layui-inline">
			<label class="layui-form-label">分站</label>
			<div class="layui-input-inline">
				<select name="site_id" lay-filter="site_id" id="site_id" lay-search>
					<option value="">主站</option>
					{volist name="site_list" id="list"}
					<option value="{$list.site_id}" {if condition="$list.site_id EQ SITE_ID" }selected{/if}>{$list.site_name}</option>
					{/volist}
				</select>
			</div>
		</div>
		{/if}
		<div class="layui-inline">
    			<label class="layui-form-label layui-bg-blue">订单类型</label>
    			<div class="layui-input-inline">
    				<select name="order_type" lay-filter="order_type" id="order_type">
    					<option value="">全部</option> 
    					<option value="1">自然订单</option>
						<option value="2">报备订单</option>
						<option value="3">其他订单</option>
						<option value="8">前报备</option>
						<option value="6">竞价订单</option>
						{if condition="menuAuth('supplier_order_search')"}
						<option value="5">退货</option>
						<option value="7">废止单</option>
						{/if}
    				</select>
    			</div>
    		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">售后类型</label>
			<div class="layui-input-inline">
				<select name="shouhou_type" lay-filter="shouhou_type" id="shouhou_type">
					<option value="">全部</option>
					<option value="1">无需售后</option>
					<option value="2">漏发货</option>
					<option value="3">多发货</option>
					<option value="4">错发</option>
					<option value="5">换货</option>
					<option value="6">退货</option>
					<option value="7">维修调试</option>
					<option value="8">安装</option>
				</select>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">订单号</label>
			<div class="layui-input-inline">
				<input type="text" name="order_no" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">军采单号</label>
			<div class="layui-input-inline">
				<input type="text" name="out_order_no" autocomplete="off" class="layui-input">
			</div>
		</div>
<div class="layui-inline">
	<label class="layui-form-label layui-bg-blue">金额</label>
	<div class="layui-input-inline">
		<input type="text" name="min_order_money" autocomplete="off" class="layui-input" placeholder="最低金额">
	</div>
	<div class="layui-input-inline">
		<input type="text" name="max_order_money" autocomplete="off" class="layui-input" placeholder="最高金额">
	</div>
</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">下单</label>
			<div class="layui-input-inline">
				<input type="text" name="order_form_create_time_start" autocomplete="off" class="layui-input" placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="order_form_create_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
			</div>
		</div>
		<div class="layui-inline">
			    			<label class="layui-form-label layui-bg-blue">指派日期</label>
			    			<div class="layui-input-inline">
			    				<input type="text" name="push_supplier_time_start" autocomplete="off" class="layui-input"
			    					placeholder="开始日期">
			    			</div>
			    			<div class="layui-input-inline">
			    				<input type="text" name="push_supplier_time_end" autocomplete="off" class="layui-input"
			    					placeholder="结束日期">
			    			</div>
			    		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">收货电话</label>
			<div class="layui-input-inline">
				<input type="text" name="phone" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">地址</label>
			<div class="layui-input-inline">
				<input type="text" name="j_address" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">订单确认</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="supplier_state" value="" title="全部" checked>
				<input type="radio" name="supplier_state" value="1" title="已确认">
				<input type="radio" name="supplier_state" value="3" title="未确认">
			</div>
			<div class="layui-input-inline">
			    <input type="text" name="supplier_confirm_time_start" autocomplete="off" class="layui-input"
			        placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
			    <input type="text" name="supplier_confirm_time_end" autocomplete="off" class="layui-input"
			        placeholder="结束日期">
			</div>
			
		</div>

		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">送货</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="gys_fh_state" value="" title="全部" checked>
				<input type="radio" name="gys_fh_state" value="2" title="未发货">
				<input type="radio" name="gys_fh_state" value="1" title="已发货">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="gys_fh_time_start" autocomplete="off" class="layui-input" placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="gys_fh_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
			</div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">配送物流</label>
		    <div class="layui-input-inline">
		        <select name="wuliu" lay-filter="wuliu" id="wuliu" lay-search>
		            
		        </select>
		    </div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">订阅状态</label>
		    <div class="layui-input-inline">
		        <select name="dingyue" lay-filter="dingyue" id="dingyue">
		            <option value="">全部</option>
		            <option value="1">成功</option>
		            <option value="2">等待回调</option>
		            <option value="3">未配送</option>
		            <option value="4">自配物流</option>
		            <option value="5">无</option>
		        </select>
		    </div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">收货</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="gys_sh_state" value="" title="全部" checked>
				<input type="radio" name="gys_sh_state" value="2" title="未收货">
				<input type="radio" name="gys_sh_state" value="1" title="已收货">
			</div>
			<div class="layui-input-inline">
    				<input type="text" name="gys_sh_time_start" autocomplete="off" class="layui-input"
    					placeholder="开始日期">
    			</div>
    			<div class="layui-input-inline">
    				<input type="text" name="gys_sh_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
    			</div>
		</div>
		<div class="layui-inline">
				<label class="layui-form-label layui-bg-blue">申请发票</label>
				<div class="layui-input-inline">
					<select name="apply_state" lay-filter="apply_state" id="apply_state">
						<option value="">全部</option>
						<option value="1">未申请</option>
						<option value="2">等待审核</option>
						<option value="3">审核通过</option>
						<option value="4">驳回审核</option>
					</select>
				</div>
			</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">用户发票</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="invoice_state" value="" title="全部" checked>
    				<input type="radio" name="invoice_state" value="1" title="未开票">
    				<input type="radio" name="invoice_state" value="2" title="已开票">
			</div>
		</div>
		<div class="layui-inline">
    			<label class="layui-form-label layui-bg-blue">采购发票</label>
    			<div class="layui-input-inline search-radio-box">
    				<input type="radio" name="caigou_invoice_duty" value="" title="全部" checked>
    				<input type="radio" name="caigou_invoice_duty" value="1" title="未开票">
    				<input type="radio" name="caigou_invoice_duty" value="2" title="已开票">
    			</div>
    		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">收款</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="pay_state" value="" title="全部" checked>
				<input type="radio" name="pay_state" value="2" title="全部收">
				<input type="radio" name="pay_state" value="4" title="质保金">
				<input type="radio" name="pay_state" value="3" title="部分收">
				<input type="radio" name="pay_state" value="1" title="未收">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">付款</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="ghs_pay" value="" title="全部" checked>
				<input type="radio" name="ghs_pay" value="1" title="全部付">
				<input type="radio" name="ghs_pay" value="2" title="质保金">
				<input type="radio" name="ghs_pay" value="3" title="部分付">
				<input type="radio" name="ghs_pay" value="4" title="未付">
			</div>
			<div class="layui-input-inline">
    				<input type="text" name="ghs_pay_time_start" autocomplete="off" class="layui-input"
    					placeholder="开始日期">
    			</div>
    			<div class="layui-input-inline">
    				<input type="text" name="ghs_pay_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
    			</div>
		</div>
		<div class="layui-inline">
    			<label class="layui-form-label layui-bg-blue">客服提醒</label>
    			<div class="layui-input-inline">
    				<input type="text" name="remark" autocomplete="off" class="layui-input">
    			</div>
    		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">备注1</label>
			<div class="layui-input-inline">
				<input type="text" name="suppler_bz" autocomplete="off" class="layui-input">
			</div>
		</div>
		<!--
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">备注2</label>
			<div class="layui-input-inline">
				<input type="text" name="suppler_bz2" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">备注3</label>
			<div class="layui-input-inline">
				<input type="text" name="suppler_bz3" autocomplete="off" class="layui-input">
			</div>
		</div>
	-->
		<div class="layui-inline">
			<div class="layui-input-inline">
				<button type="button" id="order_search_btn" class="layui-btn layui-btn-normal layui-btn-sm layui-bg-red">搜  索</button>
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="order_list" lay-filter="order_list"></table>
<script>
	var order_list_url = "{:url('order/ajaxList')}";
	var order_delete_url = "{:url('order/ajaxDelete')}";
	var kuaidiList_url = "{:url('order/KuaidiList')}";
	var order_one_url = "{:url('order/ajaxOneData')}";
	var order_save_url = "{:url('order/saveData')}";
	var order_cols = {$cols};
	var order_detail_url = "{:url('order/detail')}";
	var order_export_url = "{:url('order/exportOrder')}";
	var invoice_export_url = "{:url('order/excelGysInvoiceAll')}";
	var saleinvoice_export_url = "{:url('order/excelSaleInvoiceAll')}";
	var option_log_url = "{:url('order/optionLog')}";
	var share_goods_url = "{:url('login/shareGoods')}";
	var zip_down_url = "{:url('order/zipDownAll')}";
	var share_contact_url = "{:url('login/shareContact')}";
	var back_order_url = "{:url('order/backOrder')}";
	var sny_invoice_uri = "{:url('order/snyInvoice')}";
	var caigou_url = "{:url('dianzi/caigou')}";
	var caigou1_url = "{:url('dianzi/caigou1')}";
	var rukubiao_url = "{:url('dianzi/rukubiao')}";
	
	$.getScript('/static/js/order/order.js');
</script>
<script type="text/html" id="orderToolbar">
	<div class="layui-btn-container">
		
		<a type="button" data-title="导出本次查询订单" data-url="{:url('order/export')}" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="exportAllOrder"><i class="layui-icon layui-icon-spread-left"></i>导出本次查询订单</a>
		<a type="button" data-title="导出送货单" data-url="{:url('order/exportSonghuodan')}" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="exportSonghuodan"><i class="layui-icon layui-icon-spread-left"></i>导出送货单</a>
		<a type="button" data-title="导出采购发票明细" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="exportAllGysInvoice">采购发票</a>
		{if condition="menuAuth('supplier_order_dianzi')"}
		<a type="button" data-title="导出入库表" class="layui-btn layui-btn-warm layui-btn-sm rukubiao" lay-event="rukubiao">导出入库表</a>
		<div class="layui-btn-group">
			<a type="button" data-title="导出采购合同" class="layui-btn layui-btn-normal layui-btn-sm caigou" lay-event="caigou">导出采购合同</a>
			<a type="button" data-title="导出采购合同1" class="layui-btn layui-btn-warm layui-btn-sm caigou1" lay-event="caigou1">导出采购合同1</a>
		</div>
		{/if}
	</div>
</script>
<script type="text/html" id="order_tool">
	<div class="layui-btn-group">
		<a class="" lay-event="viewMore" data-title="查看详情"><i class="layui-icon layui-icon-right"></i></a>
	</div>
</script>
<script type="text/html" id="member_infoTpl">
	{{# return d.member_info['username']; if(d.member_info['realname'] == ''){ return d.member_info['username']; } else { return d.member_info['realname']; } }}
</script>

<script type="text/html" id="order_stateTpl">
	{{# var text = ''; switch(d.order_state){ case 1: text = '<span style="color: #FF5722;">待确认</span>'; break; case 2: text = '<span style="color: #FFB800;">等待发货</span>'; break; case 3: text = '<span style="color: #01AAED;">等待收货</span>'; break; case 4: text = '<span style="color: #2F4056;">已收货</span>'; break; case 5: text = '<span style="color: #009688;">订单完成</span>'; break; case -1: text = '<span style="color: #c2c2c2;">已取消</span>'; break; default: text = '错误'; break; } return text; }}
</script>
<script type="text/html" id="pay_typeTpl">
	{{# switch (d.pay_type){ case 1: return '<span style="color: #FF5722;">货到付款</span>'; break; case 2: return '<span style="color: #FFB800;">在线支付</span>'; break; case 3: return '<span style="color: #01AAED;">账期支付</span>'; break; case 4: return '<span style="color: #2F4056;">银行转账</span>'; break; default: break; } }}
</script>
<script type="text/html" id="pay_stateTpl">
	{{# if(d.pay_state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-green" data-title="已支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="caigou_hetongTpl">
{{# if(d.caigou_hetong){}}
	<div class="layui-anim circle layui-bg-green" data-title="已上传">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
		<div class="layui-anim circle layui-bg-red" data-title="未上传">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# }}}
</script>
<script type="text/html" id="is_invoiceTpl">
	{{# switch (d.is_invoice){ case 1: return '<span style="color: #FF5722;">不开票</span>'; break; case 2: return '<span style="color: #FFB800;">独立开票</span>'; break; case 3: return '<span style="color: #01AAED;">统一开票</span>'; break; default: break; } }}
</script>
    <script type="text/html" id="invoice_stateTpl">
    {{# if(d.invoice_state == 2){}}
    	<div class="layui-anim circle layui-bg-green" data-title="已开票">
    		<i class="layui-icon layui-icon-radio"></i>
    	</div>
    	{{# } else {}}
    		<div class="layui-anim circle layui-bg-red" data-title="未开票">
    			<i class="layui-icon layui-icon-radio"></i>
    		</div>
    		{{# }}}
    </script>
<script type="text/html" id="shopping_stateTpl">
	{{# if(d.shopping_state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.shopping_state == 2){ }}
	<div class="layui-anim circle layui-bg-green" data-title="已配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-orange" data-title="部分配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
 <script type="text/html" id="caigou_invoice_dutyTpl">
    {{# if(d.caigou_invoice_duty){}}
    	<div class="layui-anim circle layui-bg-green" data-title="已开票">
    		<i class="layui-icon layui-icon-radio"></i>
    	</div>
    	{{# } else {}}
    		<div class="layui-anim circle layui-bg-red" data-title="未开票">
    			<i class="layui-icon layui-icon-radio"></i>
    		</div>
    		{{# }}}
    </script>
<script type="text/html" id="supplier_stateTpl">
	{{# if(d.supplier_state == 2){}}
	<div class="layui-anim circle layui-bg-red" data-title="未指派">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.supplier_state == 1){ }}
	<div class="layui-anim circle layui-bg-green" data-title="已确认">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-black" data-title="未确认">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="receipt_stateTpl">
	{{# if(d.receipt_state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.receipt_state == 2){ }}
	<div class="layui-anim circle layui-bg-green" data-title="已收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-orange" data-title="部分收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="cancel_typeTpl">
	{{# if(d.cancel_type == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="客户取消">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.cancel_type == 2) {}}
	<div class="layui-anim circle layui-bg-orange" data-title="管理员取消">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else{ }}
	{{# }}}
</script>
<script type="text/html" id="ghs_payTpl">
	{{# if(d.ghs_pay == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="全部支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.ghs_pay == 2){ }}
	<div class="layui-anim circle layui-bg-blue" data-title="质保金支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.ghs_pay == 3){ }}
	<div class="layui-anim circle layui-bg-cyan" data-title="部分支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.ghs_pay == 4){ }}
	<div class="layui-anim circle layui-bg-red" data-title="未支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>

	<script type="text/html" id="dingyueTpl">
		{{# if(d.dingyue == 1){}}
		<div class="layui-anim circle layui-bg-green" data-title="{{d.wuliu}}-成功">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } else if(d.dingyue == 2){ }}
		<div class="layui-anim circle layui-bg-red" data-title="{{d.wuliu}}-等待回调">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } else if(d.dingyue == 3){ }}
		<div class="layui-anim circle layui-bg-orange" data-title="未配送">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } else if(d.dingyue == 4){ }}
		<div class="layui-anim circle layui-bg-cyan" data-title="自配物流">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } else if(d.dingyue == 5){ }}
		<div class="layui-anim circle layui-bg-blue" data-title="无">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } }}
	</script>


<script type="text/html" id="shoukuan_payTpl">
	{{# if(d.shoukuan_pay == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="全部收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.shoukuan_pay == 2){ }}
	<div class="layui-anim circle layui-bg-blue" data-title="质保金收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.shoukuan_pay == 3){ }}
	<div class="layui-anim circle layui-bg-cyan" data-title="部分收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.shoukuan_pay == 4){ }}
	<div class="layui-anim circle layui-bg-red" data-title="未收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-orange" data-title="申请收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>

<script type="text/html" id="gys_fh_stateTpl">
	{{# if(d.gys_fh_state == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="已发货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未发货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="gys_sh_stateTpl">
	{{# if(d.gys_sh_state == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="已收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
 <script type="text/html" id="apply_stateTpl">
    {{# if(d.apply_state === 1){}}
    	<div class="layui-anim circle layui-bg-red" data-title="未申请">
    		<i class="layui-icon layui-icon-radio"></i>
    	</div>
    	{{# } else if(d.apply_state === 2){ }}
    		<div class="layui-anim circle layui-bg-black" data-title="等待审核">
    			<i class="layui-icon layui-icon-radio"></i>
    		</div>
    	{{# } else if(d.apply_state === 3){ }}
    		<div class="layui-anim circle layui-bg-green" data-title="审核通过">
    			<i class="layui-icon layui-icon-radio"></i>
    		</div>
		{{# } else if(d.apply_state === 4){ }}
			<div class="layui-anim circle layui-bg-green" data-title="驳回审核">
				<i class="layui-icon layui-icon-radio"></i>
			</div>
    	{{# } else {}}
    		<div class="layui-anim circle layui-bg-red" data-title="未申请">
    			<i class="layui-icon layui-icon-radio"></i>
    		</div>
    		{{# }}}
    </script>
    <script type="text/html" id="returncodeTpl">
    {{# if(d.returncode === null){}}
    	<div class="layui-anim circle layui-bg-red" data-title="未申请">
    		<i class="layui-icon layui-icon-radio"></i>
    	</div>
    	{{# } else if(d.returncode == '成功'){ }}
    		<div class="layui-anim circle layui-bg-green" data-title="开具成功">
    			<i class="layui-icon layui-icon-radio"></i>
    		</div>
    	{{# } else {}}
    		<div class="layui-anim circle layui-bg-black" data-title="开具失败">
    			<i class="layui-icon layui-icon-radio"></i>
    		</div>
    		{{# }}}
    </script>
	<script type="text/html" id="jun_order_stateTpl">
	{{# var text = ''; 
	switch(d.jun_order_state){ 
		case 0: text = '<span style="color: #FF5722;">无效订单</span>';break;
		case 1: text = '<span style="color: #FF5722;">待确认</span>'; break; 
		case 2: text = '<span style="color: #FFB800;">待发货</span>'; break; 
		case 3: text = '<span style="color: #01AAED;">待支付</span>'; break; 
		case 4: text = '<span style="color: #2F4056;">待收货</span>'; break; 
		case 5: text = '<span style="color: #009688;">已完成</span>'; break; 
		case 6: text = '<span style="color: #c2c2c2;">已退货</span>';break;
		case 7: text = '<span style="color: #c2c2c2;">已取消</span>';break;
		case 8: text = '<span style="color: #c2c2c2;">待妥投</span>'; break; 
		case 9: text = '<span style="color: #c2c2c2;">已废止</span>'; break; 
		default: text = '<span style="color: #c2c2c2;">未同步</span>'; break; 
	} 
		return text; 
	}}
	</script>
        <script type="text/html" id="order_typeTpl">
    {{# if(d.order_type == 1){}}
    	自然订单
    	{{# } else if(d.order_type == 2){ }}
    		报备单
    		{{# } else if(d.order_type == 3){ }}
    			其他订单
    			{{# } else if(d.order_type == 4){ }}
    				改库房
    				{{# } else if(d.order_type == 5){ }}
    					退货
    					{{# } else if(d.order_type == 6){ }}
    						竞价单
    						{{# } else if(d.order_type == 7){ }}
    						废止订单
    						{{# } else if(d.order_type == 8){ }}
    						前报备
    						{{# } else if(d.order_type == 9){ }}
    						后报备
							{{# } else if(d.order_type == 10){ }}
							带量竞价
    						{{# }}}
    </script>
	<script type="text/html" id="out_order_noTpl">
	{{# if(d.shouhou_type == 1){}}
	 <div style="position: absolute;float:left; z-index:10;">{{d.out_order_no}}</div>
	{{# } else if(d.shouhou_type == 2){ }}
	   <div class="layui-anim circle shouhou layui-bg-red" data-title="漏发货">
		</div><div class="shouhou_no">{{d.out_order_no}}</div>
		{{# } else if(d.shouhou_type == 3){ }}
			<div class="layui-anim circle shouhou layui-bg-red" data-title="多发货">
			</div><div class="shouhou_no">{{d.out_order_no}}</div>
			{{# } else if(d.shouhou_type == 4){ }}
				<div class="layui-anim circle shouhou layui-bg-red" data-title="错发">
				</div><div class="shouhou_no">{{d.out_order_no}}</div>
				{{# } else if(d.shouhou_type == 5){ }}
					<div class="layui-anim circle shouhou layui-bg-red" data-title="换货">
					</div><div class="shouhou_no">{{d.out_order_no}}</div>
					{{# } else if(d.shouhou_type == 6){ }}
						<div class="layui-anim circle shouhou layui-bg-red" data-title="退货">
						</div><div class="shouhou_no">{{d.out_order_no}}</div>
						{{# } else if(d.shouhou_type == 7){ }}
						<div class="layui-anim circle shouhou layui-bg-red" data-title="维修调试">
						</div><div class="shouhou_no">{{d.out_order_no}}</div>
						{{# } else if(d.shouhou_type == 8){ }}
						<div class="layui-anim circle shouhou layui-bg-red" data-title="安装">
						</div><div class="shouhou_no">{{d.out_order_no}}</div>
						{{# }}}
	</script>
<style>
td .layui-table-header {
	height: auto!important;
}
</style>